package com.basker.pisces.core.query.criteria.iterate;

import com.basker.pisces.core.query.criteria.Criterion;
import com.basker.pisces.core.query.meta.QueryMeta;
import com.basker.pisces.core.query.meta.TableDesc;

public class CriterionIterateArgs {

    private QueryMeta queryMeta;
    private Criterion criterion;
    private TableDesc hostTable;
    private boolean isLast = false;

    public CriterionIterateArgs(QueryMeta queryMeta, Criterion criterion, TableDesc hostTable, boolean isLast) {
        this.queryMeta = queryMeta;
        this.criterion = criterion;
        this.hostTable = hostTable;
        this.isLast = isLast;
    }

    public Criterion getCriterion() {
        return criterion;
    }

    public TableDesc getHostTable() {
        return hostTable;
    }

    public QueryMeta getQueryMeta() {
        return queryMeta;
    }

    public boolean isLast() {
        return isLast;
    }

}
